package com.learn.edupay.feign;


import com.learn.eduapi.entity.UserCourseOrder;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;

/**
 * 订单控制器
 */
@FeignClient("edu-order-boot")
public interface OrderFeignClient {

    @PostMapping("/order")
    ResponseEntity<UserCourseOrder> makeOrder(@RequestBody UserCourseOrder order);

    @PutMapping("/order")
    ResponseEntity<UserCourseOrder> changeOrderStatus(@RequestBody UserCourseOrder order);

}
